package com.wejoy.video.middle.station.data.mapper.alarm;

import com.wejoy.video.middle.station.data.domain.alarm.AlarmDetails;
import com.wejoy.video.middle.station.data.vo.AlarmDataVO;

import java.util.List;
import java.util.Map;

/**
 * 工单主表
 *
 * @author miracle_j
 * @date 2024年12月12日 15:18:52
 */
public interface IAlarmDetailsMapper {

    /**
     * 插入
     *
     * @param alarmDetails alarmDetails
     * @return int
     */
    int insertSelective(AlarmDetails alarmDetails);

    /**
     * 更新
     *
     * @param setParam   setParam
     * @param whereParam whereParam
     * @return int
     */
    int updateSelective(AlarmDetails setParam, AlarmDetails whereParam);

    /**
     * 数量
     *
     * @param alarmDetails alarmDetails
     * @return int
     */
    int getCount(AlarmDetails alarmDetails);

    /**
     * 单条
     *
     * @param alarmDetails alarmDetails
     * @return AlarmDetails
     */
    AlarmDetails getOne(AlarmDetails alarmDetails);

    /**
     * 多条
     *
     * @param alarmDetails alarmDetails
     * @return List<AlarmDetails>
     */
    List<AlarmDetails> getList(AlarmDetails alarmDetails);

    /**
     * 分页
     *
     * @param alarmDetails alarmDetails
     * @return List<AlarmDetails>
     */
    List<AlarmDetails> getPageList(AlarmDetails alarmDetails);

    List<Map<String,String>> getCountByalarmLocation(AlarmDetails alarmDetails);

//    AlarmDataVO getAlarmDataByDate(AlarmDetails alarmDetails);

}